home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 764 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: austern@isolde.mti.sgi.com (Matt Austern)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: static_cast
  5. Date: 18 Mar 1996 20:34:48 GMT
  6. Organization: SGI
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <AUSTERN.96Mar18102938@isolde.mti.sgi.com>
  9. References: <30F54E6D.B4@worldnet.att.net> <4ih0eb$ms9@jake.esu.edu>
  10.     <314c3f47.1349350@nntp.ix.netcom.com>
  11. Reply-To: austern@cardboard.mti.sgi.com
  12. NNTP-Posting-Host: taumet.eng.sun.com
  13. X-Nntp-Posting-Host: isolde.mti.sgi.com
  14. In-Reply-To: jdmorris@ix.netcom.com's message of 18 Mar 1996 09:46:43 PST
  15. Content-Length: 706
  16. X-Lines: 17
  17. Originator: clamage@taumet
  18.  
  19. In article <314c3f47.1349350@nntp.ix.netcom.com> jdmorris@ix.netcom.com (Jason D. Morris) writes:
  20.  
  21. > Aren't the old C style casts and C++ functional style casts depricated
  22. > under the draft standard?
  23.  
  24. No.  It's true that new-style casts (static_cast, dynamic_cast,
  25. reinterpret_cast and const_cast) are almost always a better solution,
  26. but old-style casts have not been deprecated.
  27.  
  28. If a feature has been deprecated, that basically means that users are
  29. warned to stop using that feature: there is no guarantee that it will
  30. continue to be supported.  The standardization committee chose not to
  31. do anything so drastic in the case of casts.
  32. -- 
  33. Matt Austern
  34. SGI: MTI Compilers Group
  35. austern@isolde.mti.sgi.com
  36.  
  37.  
  38. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your
  39.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  40.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  41.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  42.   Comments? mailto:std-c++-request@ncar.ucar.edu
  43. ]
  44.